package com.hmall.common.config;

import feign.RequestInterceptor;
import feign.RequestTemplate;

/**
 * 给Feign添加请求头
 *
 * @Author Eeyore
 * @Date 2022/8/13 18:55
 * @Description: 给Feign添加请求头
 */
public class MyFeignInterceptor implements RequestInterceptor {
    @Override
    public void apply(RequestTemplate requestTemplate) {
        requestTemplate.header("authorization", "2");
    }
}